package com.secsbrain.cmdb.dal.model;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotations.IdType;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

/**
 *
 * IP表
 *
 */
@TableName(value = "cmdb_ip")
public class Ip implements Serializable {

	@TableField(exist = false)
	private static final long serialVersionUID = 1L;

	/** 主键 */
	@TableId(type = IdType.AUTO)
	private Long id;

	/** 更新时间 */
	@TableField(value = "update_time")
	private Date updateTime;

	/** 提交人ID */
	@TableField(value = "updator_id")
	private Long updatorId;

	/** 提交人姓名 */
	@TableField(value = "updator_name")
	private String updatorName;

	/** 状态：0-占用 ，1-可用 */
	private Integer istatus;

	/** IP地址 */
	private String ip;
	
	@TableField(exist = false)
	private String ipSegment;
	
	@TableField(exist = false)
	private String[] ipArray;

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Long getUpdatorId() {
		return this.updatorId;
	}

	public void setUpdatorId(Long updatorId) {
		this.updatorId = updatorId;
	}

	public String getUpdatorName() {
		return this.updatorName;
	}

	public void setUpdatorName(String updatorName) {
		this.updatorName = updatorName;
	}

	public Integer getIstatus() {
		return this.istatus;
	}

	public void setIstatus(Integer istatus) {
		this.istatus = istatus;
	}

	public String getIp() {
		return this.ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public String getIpSegment() {
		return ipSegment;
	}

	public void setIpSegment(String ipSegment) {
		this.ipSegment = ipSegment;
	}

	public String[] getIpArray() {
		return ipArray;
	}

	public void setIpArray(String[] ipArray) {
		this.ipArray = ipArray;
	}

}
